home *** CD-ROM | disk | FTP | other *** search
- includeh ls_ppc_macros.def *the macros we need
- includeh general_usage.def *some handy definitions
- **Beginners guide to PowerPC assembly language.
- **Example 1
- **(C) Lightsoft 1996.
- **Program to add two numbers.
- start_up *the start_up macro as detailed above - sets up the toc etc
- Xcall Debugger *call Macsbug so we can see it happen.
- li r3,4 *First number is 4.
- li r4,8 *8 is second number
- add r5,r4,r3 *add r3 to r4 and store result in r5
- tidy_up *clear up processors registers and get ready to exit
- blr *back to system.
-